package main

import "fmt"

func main() {
	even := isEven(22)
	fmt.Println(even)

	a, b := 12, 11
	swap(a, b)

	fmt.Printf("a  = %d, b = %d", a, b)

}

func isEven(a int) bool {
	return a&1 == 0
}

func swap(a int, b int) {
	fmt.Printf("[in]a  = %d, b = %d\n", a, b)
	a = a ^ b
	b = a ^ b
	a = a ^ b
	fmt.Printf("[out]a  = %d, b = %d\n", a, b)
}
